<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib tagdir="/WEB-INF/tags/layout" prefix="layout" %>

<layout:page>

<jsp:body>
	<h2>Alterar Cadastro</h2>
	
	<ul id="submenu">
		<li><a href="/biblioteca-sistema/index.jsp">Cancelar</a></li>
	</ul>

	<form method="post" action="/biblioteca-sistema/UsuarioInvoker">
		<fieldset>
			<legend>Dados do Usuário</legend>
						
			<div class="editor-label">
            	<label for="tipo">Tipo</label>
			</div>
			<div class="editor-field">
            	<select name="tipo">
            		<option value="1">Bibliotecário</option>
            		<option value="2">Aluno de Graduação</option>
            		<option value="3">Aluno de Pós-Graduação</option>
            		<option value="4">Professor</option>
            	</select>
			</div>
		<div class="editor-label">
            	<label for="nome">Nome</label>
			</div>
			<div class="editor-field">
            	<input name="nome" type="text" value="<c:out value="${nome}"/>"/>
			</div>

			<div class="editor-label">
            	<label for="email">E-mail</label>
			</div>
			<div class="editor-field">
            	<input name="email" type="text" value="<c:out value="${email}"/>"/>
			</div>
			
			<div class="editor-label">
            	<label for="conta">Conta</label>
			</div>
			<div class="editor-field">
            	<input name="conta" type="text" value="<c:out value="${conta}"/>" />
			</div>
			
			
			<div class="editor-label">
            	<label for="senha">Senha</label>
			</div>
			<div class="editor-field">
            	<input name="senha" type="text" />
			</div>
			<input name="command" type="hidden" value="alterar" ></input> 
			<input name="id" type="hidden" value="<c:out value="${id}"/>" ></input> 
						
		</fieldset>	
		
		<div class="button">
			<input type="submit" value="Alterar" />
		</div>
		
	</form>
</jsp:body>   

</layout:page>